package com.xuyiwei.xblog.business.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统配置
 * </p>
 *
 * @author xuyiwei
 * @since 2018-10-28
 */
@TableName("sys_config")
public class Config extends Model<Config> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 首页描述
     */
    @TableField("home_desc")
    private String homeDesc;
    /**
     * 首页关键字
     */
    @TableField("home_keywords")
    private String homeKeywords;
    /**
     * 根域名
     */
    private String domain;
    /**
     * 管理系统的url
     */
    @TableField("cms_url")
    private String cmsUrl;
    /**
     * 网站地址
     */
    @TableField("site_url")
    private String siteUrl;
    /**
     * 站点名称
     */
    @TableField("site_name")
    private String siteName;
    /**
     * 站点描述
     */
    @TableField("site_desc")
    private String siteDesc;
    /**
     * 站点LOGO
     */
    @TableField("site_favicon")
    private String siteFavicon;
    /**
     * 资源文件（js、css等的路径）
     */
    @TableField("static_web_site")
    private String staticWebSite;
    /**
     * 站长名称
     */
    @TableField("author_name")
    private String authorName;
    /**
     * 站长邮箱
     */
    @TableField("author_email")
    private String authorEmail;
    /**
     * 微信二维码地址
     */
    @TableField("wx_code")
    private String wxCode;
    /**
     * QQ
     */
    private String qq;
    /**
     * 微博
     */
    private String weibo;
    /**
     * github
     */
    private String github;
    /**
     * 是否开启维护通知
     */
    private Boolean maintenance;
    /**
     * 系统维护时间
     */
    @TableField("maintenance_data")
    private Date maintenanceData;
    /**
     * 是否开启评论
     */
    private Boolean comment;

    /**
     * 微信赞赏码
     */
    @TableField("wx_praise_code")
    private String wxPraiseCode;
    /**
     * 支付宝赞赏码
     */
    @TableField("zfb_praise_code")
    private String zfbPraiseCode;


    /**
     * 添加时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 支付宝赞赏码
     */
    @TableField("websocket_url")
    private String websocketUrl;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHomeDesc() {
        return homeDesc;
    }

    public void setHomeDesc(String homeDesc) {
        this.homeDesc = homeDesc;
    }

    public String getHomeKeywords() {
        return homeKeywords;
    }

    public void setHomeKeywords(String homeKeywords) {
        this.homeKeywords = homeKeywords;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getCmsUrl() {
        return cmsUrl;
    }

    public void setCmsUrl(String cmsUrl) {
        this.cmsUrl = cmsUrl;
    }

    public String getSiteUrl() {
        return siteUrl;
    }

    public void setSiteUrl(String siteUrl) {
        this.siteUrl = siteUrl;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getSiteDesc() {
        return siteDesc;
    }

    public void setSiteDesc(String siteDesc) {
        this.siteDesc = siteDesc;
    }

    public String getSiteFavicon() {
        return siteFavicon;
    }

    public void setSiteFavicon(String siteFavicon) {
        this.siteFavicon = siteFavicon;
    }

    public String getStaticWebSite() {
        return staticWebSite;
    }

    public void setStaticWebSite(String staticWebSite) {
        this.staticWebSite = staticWebSite;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorEmail() {
        return authorEmail;
    }

    public void setAuthorEmail(String authorEmail) {
        this.authorEmail = authorEmail;
    }

    public String getWxCode() {
        return wxCode;
    }

    public void setWxCode(String wxCode) {
        this.wxCode = wxCode;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeibo() {
        return weibo;
    }

    public void setWeibo(String weibo) {
        this.weibo = weibo;
    }

    public String getGithub() {
        return github;
    }

    public void setGithub(String github) {
        this.github = github;
    }

    public Boolean getMaintenance() {
        return maintenance;
    }

    public void setMaintenance(Boolean maintenance) {
        this.maintenance = maintenance;
    }

    public Date getMaintenanceData() {
        return maintenanceData;
    }

    public void setMaintenanceData(Date maintenanceData) {
        this.maintenanceData = maintenanceData;
    }

    public Boolean getComment() {
        return comment;
    }

    public void setComment(Boolean comment) {
        this.comment = comment;
    }

    public String getWxPraiseCode() {
        return wxPraiseCode;
    }

    public void setWxPraiseCode(String wxPraiseCode) {
        this.wxPraiseCode = wxPraiseCode;
    }

    public String getZfbPraiseCode() {
        return zfbPraiseCode;
    }

    public void setZfbPraiseCode(String zfbPraiseCode) {
        this.zfbPraiseCode = zfbPraiseCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getWebsocketUrl() {
        return websocketUrl;
    }

    public void setWebsocketUrl(String websocketUrl) {
        this.websocketUrl = websocketUrl;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Config{" +
        "id=" + id +
        ", homeDesc=" + homeDesc +
        ", homeKeywords=" + homeKeywords +
        ", domain=" + domain +
        ", cmsUrl=" + cmsUrl +
        ", siteUrl=" + siteUrl +
        ", siteName=" + siteName +
        ", siteDesc=" + siteDesc +
        ", siteFavicon=" + siteFavicon +
        ", staticWebSite=" + staticWebSite +
        ", authorName=" + authorName +
        ", authorEmail=" + authorEmail +
        ", wxCode=" + wxCode +
        ", qq=" + qq +
        ", weibo=" + weibo +
        ", github=" + github +
        ", maintenance=" + maintenance +
        ", maintenanceData=" + maintenanceData +
        ", comment=" + comment +
        ", wxPraiseCode=" + wxPraiseCode +
        ", zfbPraiseCode=" + zfbPraiseCode +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
